﻿using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace MQ.Core.Db
{
    public class DbOption
    {
        public readonly string DefaultConnection;
        public readonly string MySqlConnection;
        public readonly string PostgreSqlConnection;
        private readonly IConfiguration configuration;
        public DbOption(IConfiguration config)
        {
            configuration = config;
            DefaultConnection = configuration.GetConnectionString("DefaultConnection");
            MySqlConnection = configuration.GetConnectionString("MySqlConnection");
            PostgreSqlConnection = configuration.GetConnectionString("PostgreSqlConnection");
        }
    }
}
